﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StuIN.aspx.cs" Inherits="WebApp.IN" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>欢迎进入学生注册界面</title>
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
        .auto-style20 {
            width: 131px;
            text-align: right;
            height: 49px;
        }
        .auto-style25 {
            width: 100%;
        }
        .auto-style26 {
            width: 239px;
        }
        .auto-style31 {
            width: 167px;
            height: 49px;
        }
        .auto-style36 {
            width: 61px;
            height: 45px;
        }
        .auto-style37 {
            width: 155px;
            height: 45px;
        }
        .auto-style38 {
            height: 49px;
        }
        .auto-style39 {
            width: 131px;
            height: 45px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin-top:30px; ">
        <div style="margin:auto;width:685px; height: 616px; background-image: url('Images/注册背景.jpg');" aria-sort="ascending">
            <div>
                <table class="auto-style25">
                 <tr>
                     <td class="auto-style26">
                         <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                     </td>
                     <td style="text-align: right">
                         <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                             <ContentTemplate>
                                 <asp:Label ID="Label1" runat="server" Font-Size="Large" ForeColor="White"></asp:Label>
                             </ContentTemplate>
                             <Triggers>
                                 <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
                             </Triggers>
                         </asp:UpdatePanel>
                     </td>
                 </tr>
                 <tr>
                     <td style="text-align: right" colspan="2">
                        <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="White" NavigateUrl="~/Login.aspx">返回登录页面</asp:HyperLink>
                     </td>
                 </tr>
                 <tr>
                     <td style="text-align: left; color: #FFFFFF; font-size: x-large; font-weight: bold;" colspan="2">
                         &nbsp;欢迎进入学生信息管理系统注册页面，请填写以下信息：</td>
                 </tr>
             </table>
            </div> 

            <div style="margin:auto;width:450px; height: 250px;">   
             <br />
             <br />              
             <fieldset style="margin:auto; width:455px;">
                <legend style="color: #000000; font-weight: bold; font-size: x-large;">学生用户登录信息</legend>
             <table class="auto-style1" style=" font-size: large; height: 161px;">
                 <tr>
                     <td style="text-align:right" class="auto-style39">
                         <asp:Label ID="lblName" runat="server" Text="用户名：" Font-Bold="True" ForeColor="White"></asp:Label>
                     </td>
                     <td class="auto-style36">
                         <asp:TextBox ID="txtNa" runat="server" Height="20px" Width="150px"></asp:TextBox>
                     </td>
                     <td class="auto-style37">
                         <asp:RequiredFieldValidator ID="rfv1" runat="server" ControlToValidate="txtNa" ErrorMessage="*" ForeColor="Red">用户名不能为空！</asp:RequiredFieldValidator>
                     </td>
                 </tr>
                 <tr>
                     <td style="text-align:right" class="auto-style39">
                         <asp:Label ID="lblPwd" runat="server" Text="密码：" Font-Bold="True" ForeColor="White"></asp:Label>
                     </td>
                     <td class="auto-style36">
                         <asp:TextBox ID="txtPwd1" runat="server" Height="20px" TextMode="Password" Width="150px"></asp:TextBox>
                     </td>
                     <td class="auto-style37">
                         <asp:RequiredFieldValidator ID="rfv2" runat="server" ErrorMessage="*" ControlToValidate="txtPwd1" ForeColor="Red">密码不能为空！</asp:RequiredFieldValidator>
                     </td>
                     
                 </tr>
                 <tr>
                     <td style="text-align:right" class="auto-style39">
                         <asp:Label ID="lblPwd2" runat="server" Text="确认密码：" Font-Bold="True" ForeColor="White"></asp:Label>
                     </td>
                     <td class="auto-style36">
                         <asp:TextBox ID="txtPwd2" runat="server" Height="20px" ToolTip="两次密码必须一致" TextMode="Password" Width="150px" style="margin-top: 0px"></asp:TextBox>
                     </td>
                     <td class="auto-style37">
                         <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="CompareValidator" ControlToCompare="txtPwd1" ControlToValidate="txtPwd2" ForeColor="Red">两次密码不同！</asp:CompareValidator>
                     </td>
                 </tr>
                 <tr >
                     <td class="auto-style20" >
                         <asp:Button ID="Button1" runat="server" Height="25px" OnClick="btnIn_Click" Text="注册" Width="45px" />
                     </td>
                     <td style="text-align: right" class="auto-style31" >
                         <asp:Button ID="Button2" runat="server" Height="25px" OnClick="btnNew_Click" Text="重置" Width="45px" />
                     </td>
                     <td class="auto-style38" ></td>
                 </tr>
                 </table>
             </fieldset>
             <br />
             <br />
           <%-- <fieldset style="margin:auto; width:490px;">
                <legend style="color: #FF0000; font-weight: bold;">用户基本信息</legend>
             <table class="auto-style1" style=" font-size: large; height: 280px;">
                 <tr>
                     <td class="auto-style20">
                         <asp:Label ID="lblNo" runat="server" Text="学号：" Font-Bold="True" ForeColor="White"></asp:Label>
                     </td>
                     <td class="auto-style31">
                         <asp:TextBox ID="txtNo" runat="server" Height="20px" Width="150px"></asp:TextBox>
                     </td>
                     <td>
                         <asp:RequiredFieldValidator ID="rfv3" runat="server" ControlToValidate="txtNo" ErrorMessage="RequiredFieldValidator" ForeColor="Red">学号不能为空！</asp:RequiredFieldValidator>
                     </td>
                 </tr>
                 <tr>
                     <td class="auto-style20">
                         <asp:Label ID="lblNa" runat="server" Text="姓名：" Font-Bold="True" ForeColor="White"></asp:Label>
                     </td>
                     <td class="auto-style31">
                         <asp:TextBox ID="txtName" runat="server" Height="20px" Width="150px"></asp:TextBox>
                     </td>
                     <td>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtName" ErrorMessage="RequiredFieldValidator" EnableTheming="True" ForeColor="Red">姓名不能为空！</asp:RequiredFieldValidator>
                     </td>
                 </tr>
                 <tr>
                     <td class="auto-style20">
                         <asp:Label ID="lblSex" runat="server" Text="性别：" Font-Bold="True" ForeColor="White"></asp:Label>
                     </td>
                     <td class="auto-style31">
                         <asp:TextBox ID="txtSex" runat="server" Height="20px" Width="150px"></asp:TextBox>
                     </td>
                     <td></td>
                 </tr>
                 <tr>
                     <td class="auto-style20">
                         <asp:Label ID="lblCla" runat="server" Text="班级：" Font-Bold="True" ForeColor="White"></asp:Label>
                     </td>
                     <td class="auto-style31">
                         <asp:TextBox ID="txtCla" runat="server" Height="20px" Width="150px"></asp:TextBox>
                     </td>
                     <td></td>
                 </tr>    
                 <tr>
                     <td class="auto-style20">
                         <asp:Label ID="lblColl" runat="server" Text="学院：" Font-Bold="True" ForeColor="White"></asp:Label>
                     </td>
                     <td class="auto-style31">
                         <asp:TextBox ID="txtColl" runat="server" Height="20px" Width="150px"></asp:TextBox>
                     </td>
                     <td></td>
                 </tr>
                 <tr>
                     <td class="auto-style20">
                         <asp:Label ID="lblMe" runat="server" Text="备注：" Font-Bold="True" ForeColor="White"></asp:Label>
                     </td>
                     <td class="auto-style31">
                         <asp:TextBox ID="txtMe" runat="server" Height="20px" Width="150px"></asp:TextBox>
                     </td>
                     <td></td>
                 </tr>
                 <tr >
                     <td class="auto-style20" >
                         <asp:Button ID="btnIn" runat="server" Height="25px" OnClick="btnIn_Click" Text="注册" Width="45px" />
                     </td>
                     <td style="text-align: right" class="auto-style31" >
                         <asp:Button ID="btnNew" runat="server" Height="25px" OnClick="btnNew_Click" Text="重置" Width="45px" />
                     </td>
                     <td ></td>
                 </tr>
             </table>
             </fieldset>--%>
            </div>
             
           
           
             <br />
    
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    
             <asp:Label ID="lblInfo" runat="server" Font-Size="Large" ForeColor="Red"></asp:Label>
    
    &nbsp;&nbsp;<br />
             <br />
             <asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick">
             </asp:Timer>
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       
        </div>
    </div>
    </form>
</body>
</html>
